<?php /* Smarty version 2.6.18, created on 2016-12-15 09:18:19
         compiled from play/add.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="page-wrapper">

	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/title.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

    <form  method="post" action="<?php echo $this->_tpl_vars['url']; ?>
/insert" onsubmit="return checkselect(this)" enctype="multipart/form-data">
    <li class="list-group-item">
		<span class="label label-info">标题</span>
		<input type="text" class="form-control" name="title" size="30" value="<?php echo $this->_tpl_vars['post']['title']; ?>
" maxlength="40">
	</li>

	<li class="list-group-item">
		<span class="label label-info" style="margin-top:25px">描述</span>
		<textarea class="form-control" name="description" cols="40" rows="4"><?php echo $this->_tpl_vars['post']['description']; ?>
</textarea>&nbsp;&nbsp;小于100个汉字.
	</li>
	<li class="list-group-item">
		<span>&nbsp; </span>
		<input type="checkbox" name="thumb" <?php echo $this->_tpl_vars['thumb']; ?>
 value="1"> 生成缩略图 
		<input type="checkbox" name="water" <?php echo $this->_tpl_vars['water']; ?>
 value="1"> 加水印 
	</li>
	<li class="list-group-item">
		<span class="label label-info">上传图片 </span>
	</li>
	<span id="apic" >
		<input type="file"  name="pic[]" ><br>
	</span>
	<li class="list-group-item">
		    <button type="submit" class="btn btn-primary">添 加</button>
		    &nbsp;&nbsp;
		    <button type="reset" class="btn btn-primary">重 置</button>
	</li>
    </form>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	

